package net.hn.hnms.biz.analysis.mapper;

import net.hn.hnms.biz.analysis.domain.dto.EquipValueDto;
import net.hn.hnms.biz.analysis.domain.dto.EquipmentStartDetailsDay;
import net.hn.hnms.biz.analysis.domain.dto.MajorEquipmentStartDay;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductionMapper {

    Float getDayAvgFlow(@Param("list") List<String> sensorList, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("mineCode") String mineCode);

    List<EquipValueDto> getStartupRateData(@Param("tableName") String tableName, @Param("beginTime") String bTime, @Param("endTime") String eTime, @Param("pointCode") String pointCode, @Param("mineCode") String code);

    List<EquipValueDto> getStartupRateOtherData(@Param("tableName") String tableName, @Param("beginTime") String bTime, @Param("endTime") String eTime, @Param("pointCode") String pointCode, @Param("mineCode") String code);

    void batchInsertSensorValue(@Param("list")List<MajorEquipmentStartDay> dataList);

    void batchInsertDiffSensorValue(@Param("list")List<EquipmentStartDetailsDay> list);
}
